<style>

    .layui-form-label{
        width: 60px;
        padding:10px 2px
    }
    .layui-input-block {
        margin-left: 70px;
    }
    xm-select > .xm-body{
        z-index: 10006;
    }
</style>
<div class="layuimini-container">

    <div class="layuimini-main" id="app">

        <div class="layui-tab layui-tab-card" style="min-height: 660px">

            <ul class="layui-tab-title">
                <li class="layui-this">文章主体</li>
                <li>其他信息</li>
            </ul>
            <div class="layui-tab-content layui-form" style="min-height: 150px;">

                <div class="layui-tab-item layui-show">
                    <div class="tr_rechtext">
                        <p class="te_retit">说明</p>
                        <p>关键词可以不填，默认从内容中生成。可以配合【标签关键词】使用，可以筛选，如果没有的话亦可新增。关键字模块的标签本身的CDK配置可以更利于SEO</p>
                        <p>定时发布：如果将发布时间填写成未来你想发布的时间，那么再配合定时任务可以实现定时发布的功能。</p>
                    </div>

                    <div class="layui-row">
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                            <label class="layui-form-label">资源分类</label>
                            <div class="layui-input-block">
                                <select lay-verify="required" name="category_id">
                                    {volist name="$category_level_list" id="vo"}
                                    <option value="{$vo.id}">{$vo.title|html_entity_decode}
                                    </option>
                                    {/volist}
                                </select>
                            </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="title" class="layui-input" lay-verify="required"  placeholder="请输入标题" value="">
                            </div>
                            </div>
                        </div>


                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label" title="">定时发布<a title="点击查看使用方法" target="_blank" href="http://bbs.laysns.com/thread/2479.html">
                                    <i class="layui-icon layui-icon-tips"></i></a></label>

                                <div class="layui-input-block">
                                    <input type="text" data-date="" data-date-type="datetime" class="layui-input time" autocomplete="off" name="publish_time" >
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">

                        <div class="layui-col-md4">
                            <div class="layui-form-item">
                            <label class="layui-form-label">外链</label>
                            <div class="layui-input-block">
                                <input name="out_link" type="text" value="" autocomplete="off" class="layui-input">
                            </div>
                            </div>
                        </div>

                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                            <label class="layui-form-label">关键词</label>
                            <div class="layui-input-block">
                                <div data-xmSelect="keywords"  ></div>
                            </div>
                            </div>
                        </div>
                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">图片本地化</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="downpic" value="0">
                                    <input type="checkbox" name="downpic" value="1" lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>
                    </div>



                    <div class="layui-form-item">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <textarea name="content"  rows="20" class="layui-textarea editor" placeholder=""></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">描述</label>
                        <div class="layui-input-block">
                            <textarea name="description"  rows="3" class="layui-textarea" placeholder="不填的话会从内容种读取"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label required">封面</label>
                        <div class="layui-input-block layuimini-upload">
                            <input name="cover_img" class="layui-input layui-col-xs6"   placeholder="如果不传，会从内容中摘取第一张">
                            <div class="layuimini-upload-btn">
                                <span><a class="layui-btn" data-upload="cover_img" data-upload-number="one" data-watermark="1" data-upload-exts="png|jpg|ico|jpeg"><i class="fa fa-upload"></i> 上传</a></span>
                                <span><a class="layui-btn layui-btn-normal" id="select_head_img" data-upload-select="cover_img" data-upload-number="one"><i class="fa fa-list"></i> 选择</a></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <div class="tr_rechtext">
                        <p class="te_retit">说明</p>
                        <p>设置成广告时需要配合失效时间使用，否则无效</p>

                    </div>

                    <div class="layui-row">
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                            <label class="layui-form-label">SEO标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="seo_title" class="layui-input"  placeholder="SEO标题" >
                            </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                            <label class="layui-form-label" title="一般用于活动线报和广告">失效时间</label>
                            <div class="layui-input-block">
                                <input type="text" data-date="" data-date-type="datetime" class="layui-input time" autocomplete="off" name="finish_time" >
                            </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                            <label class="layui-form-label">颜色</label>
                            <div class="layui-input-block">
                                <input name="title_color" class="layui-input"  placeholder="" style="display:initial;width: 80px">

                                <span   data-color="title_color"></span>
                            </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">

                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                <label class="layui-form-label">加粗</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="is_bold" value="0">
                                    <input type="checkbox" name="is_bold" value="1"  lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                            <label class="layui-form-label">设置成广告</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="is_ad" value="0">
                                <input type="checkbox" name="is_ad" value="1" lay-skin="switch" lay-text="开|关">
                            </div>
                        </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                            <label class="layui-form-label">设置成轮播</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="is_carousel" value="0">
                                <input type="checkbox" name="is_carousel" value="1"  lay-skin="switch" lay-text="开|关">
                            </div>
                        </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                            <label class="layui-form-label">加精</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="is_essence" value="0">
                                <input type="checkbox" name="is_essence" value="1" lay-skin="switch" lay-text="开|关">
                            </div>
                        </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                            <label class="layui-form-label">栏目置顶</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="is_top" value="0">
                                <input type="checkbox" name="is_top" value="1"lay-skin="switch" lay-text="开|关">
                            </div>
                        </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                            <label class="layui-form-label">评论</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="allow_comment" value="0">
                                <input type="checkbox" name="allow_comment" value="1" checked lay-skin="switch" lay-text="开|关">
                            </div>
                        </div>
                        </div>
                    </div>

                    <div class="layui-form-item layui-row">



                    </div>

                    {:hooks('attachlink.link_add',array('subject_id'=>0,'subject'=>'ARTICLE'))}



                </div>



                <div class="submit-info text-center">
                    <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
                    <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                </div>

            </div>



        </div>



    </div>


</div>
